package com.qf.smartplatform.exent;/*
*王浩政 
*whz
2022/9/13
11:13
*小米商城
*/

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class LoginEvent {
    private Long uId;//发生登录的用户id
    //private String ip;//登录的ip
    private String userName;//用户名

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getuId() {
        return uId;
    }

    public void setuId(Long uId) {
        this.uId = uId;
    }

//    public String getIp() {
//        return ip;
//    }
//
//    public void setIp(String ip) {
//        this.ip = ip;
//    }

//    public LoginEvent(Long uId, String ip) {
//        this.uId = uId;
//        this.ip = ip;
//    }


    public LoginEvent(Long uId) {
        this.uId = uId;
    }

    public LoginEvent(Long uId, String userName) {
        this.uId = uId;
        this.userName = userName;
    }

    public LoginEvent() {
    }
}
